package org.aristotle.user.model.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.aristotle.user.model.vo.RoleVO;
import org.aristotle.user.model.vo.UserVO;

@Data
@ApiModel("用户角色关联")
public class UserRoleVO {

    @ApiModelProperty("用户角色关联id")
    @JSONField(name = "id", serializeUsing = ToStringSerializer.class)
    private java.lang.Long id;

    @ApiModelProperty("描述")
    @JSONField(name = "info")
    private String info;

    @ApiModelProperty("创建时间")
    @JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    @ApiModelProperty("修改时间")
    @JSONField(name = "updateTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;

    @ApiModelProperty("角色Id")
    @JSONField(name = "roleId", serializeUsing = ToStringSerializer.class)
    private Long roleId;
    @ApiModelProperty("用户Id")
    @JSONField(name = "userId", serializeUsing = ToStringSerializer.class)
    private Long userId;

    @ApiModelProperty("角色")
    @JSONField(name = "role")
    private RoleVO role;
    @ApiModelProperty("用户")
    @JSONField(name = "user")
    private UserVO user;

}
